home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2641 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: crc-news.doc.ca!usenet
  2. From: Slobodan Celenkovic <slobodan@cs.unh.edu>
  3. Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.c++
  4. Subject: Re: C++ with Zapp vs. Delphi
  5. Date: 18 Jan 1996 21:17:01 GMT
  6. Organization: The Communications Research Centre
  7. Message-ID: <4dmdcd$6sv@crc-news.doc.ca>
  8. References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com> <fRA+w0JfFG5X089yn@oslonett.no> <4dcc4d$6anc@tigger.cc.uic.edu>  <4ddke3$5lf@fountain.mindlink.net> <NEWTNews.821822862.4682.keith@keith.gpim.xerox.com>
  9. NNTP-Posting-Host: celenkovic.bob.fob003.ic.gc.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15. Keith Bagley <keithb@gpim.xerox.com> wrote:
  16. >
  17. >In article <4ddke3$5lf@fountain.mindlink.net>, <brent_bysouth@mindlink.bc.ca> 
  18. >writes:
  19. >> olczyk@sunphy1 (Thadeus Olczyk) wrote:
  20. >> 
  21. >> >As long as Delphi supports the toxic combination static typing and 
  22. >> >single inheritance , people will not be able to use polymorphism
  23. >> >to replace case statements which will always make Delphi slower in any
  24. >> >large application. 
  25. >> 
  26.  
  27. Dynamic typing, if I understand you, refers to the dynamic binding of 
  28. methods. Pascal does support it using the keyword virtual (or dynamic). 
  29. Therefore Pascal does support polymorphism just as well as C++.
  30.  
  31. In fact the nice thing about Pascal is indeed that it supports both 
  32. static and dynamic binding. The choice is left to the programmer. Of 
  33. course this is just as true for C++, in that respect there is not much 
  34. difference.
  35.  
  36. Multiple inheritance is one of the controversial features implemented by 
  37. few languages, including C++. There were many debates about the need for 
  38. MI. Indeed one can come up with very good examples where it is needed. 
  39. Yet as far as I know MI is not really used much nor needed very often. In 
  40. practice I haven't had a need for it. So it is not really very important 
  41. and certainly not the key feature of OO.
  42.  
  43.